package com.ssm.dao;

import com.ssm.pojo.Manager;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ManagerDao {

    Manager query(String amount);

    List<Manager> list();

    //按姓名查找
    List<Manager> find_name(String name);

    //按宿舍楼查找
    List<Manager> find_cdorm(String cdorm);

    int addManager(Manager manager);

    int addManagerList(List<Manager> list);

    int deleteManager(String amount);

    void deleteManagerList(List<String> list);

    int updateManager(Manager manager);

    int update_pw(@Param("amount")String amount, @Param("password")String password);
}
